<template>
  <h1>事件绑定指令</h1>
  <button @click="f">按钮</button>
  <hr>
  <input type="text" placeholder="请输入您想搜索的商品" @keydown.enter="f2">
</template>

<script setup>
const f = () => {
  console.log("点击了按钮");
}
const f2 = () => {
  console.log("正在为您搜索...");
}
</script>



<style scoped>

</style>